package com.shareach.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.shareach.common.BaseQueryOrder;
import com.shareach.domain.BaseCategoryDomain;

/**
 * create time：2013-1-30 上午11:32:46
 * 
 * @author retryu
 * @since JDK 1.6
 * @version 1.0 description：
 */
public interface BaseCategoryService {

	void save(BaseCategoryDomain domain);

	void del(BaseCategoryDomain doamin);

	void update(BaseCategoryDomain domain);

	// update by domain
	void update(BaseCategoryDomain domain, BaseCategoryDomain condition);

	BaseCategoryDomain getById(Long id);

	List<BaseCategoryDomain> getList(BaseCategoryDomain domian);

	Page<BaseCategoryDomain> getPageResult(BaseCategoryDomain domain, BaseQueryOrder order);

	BaseCategoryDomain findOne(BaseCategoryDomain domain);
}
